<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>


    </style>
</head>
<body>
    <div id="app">
        <!--文本框 文本域-->
        <input type="text" v-model="msg">
        <textarea v-model="message" placeholder="add multiple lines"></textarea>

        <!--单个复选框-->
        <input type="checkbox" id="checkbox" v-model="checked">
        <label for="checkbox">{{ checked }}</label>

        <!--多个复选框-->
        <div id='example-3'>
            <input type="checkbox" id="jack" value="Jack" v-model="checkedNames">
            <label for="jack">Jack</label>
            <input type="checkbox" id="john" value="John" v-model="checkedNames">
            <label for="john">John</label>
            <input type="checkbox" id="mike" value="Mike" v-model="checkedNames">
            <label for="mike">Mike</label>
            <br>
            <span>Checked names: {{ checkedNames }}</span>
        </div>

        <!--单选按钮-->
        <div id="example-4">
            <input type="radio" id="one" value="One" v-model="picked">
            <label for="one">One</label>
            <br>
            <input type="radio" id="two" value="Two" v-model="picked">
            <label for="two">Two</label>
            <br>
            <input type="radio" id="three" value="three" v-model="picked">
            <label for="two">three</label>
            <br>
            <span>Picked: {{ picked }}</span>
        </div>

        <!--下拉列表-->
        <div id="example-5">
            <select v-model="selected">
                <option disabled value="">请选择</option>
                <option value="A">A</option>
                <option value="B">B</option>
                <option value="C">C</option>
            </select>
            <span>Selected: {{ selected }}</span>
        </div>

        <div id="example-6">
            <select v-model="selected2" multiple style="width: 50px;">
                <option value="A">A</option>
                <option value="B">B</option>
                <option value="C">C</option>
            </select>
            <br>
            <span>Selected: {{ selected2 }}</span>
        </div>
    </div>
</body>
<script src="../js/vue.js"></script>
<script>
    Vue.config.productionTip = false;
    new Vue({
        el:"#app",
        data:{
            msg:"xxx",
            message:'xxx',
            checked:true,
            checkedNames:["John"],
            picked:"Two",
            selected:"",
            selected2:["A","B"]
        }
    })
</script>
</html>